<template>
  <!-- <div>aside</div> -->
  <el-row class="tac">
    <el-col :span="24">
      <el-menu
        :default-active="$route.path"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        router
      >
        <el-sub-menu index="/findmusic">
          <template #title>
            <el-icon><location /></el-icon>
            <span>发现音乐</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/findmusic/recommend">个性推荐</el-menu-item>
            <el-menu-item index="/findmusic/playlist">排行榜</el-menu-item>
            <el-menu-item index="/findmusic/map">地图</el-menu-item>
            <el-menu-item index="/findmusic/singer">歌手</el-menu-item>
            <el-menu-item index="/findmusic/latestmusic">最新音乐</el-menu-item>
          </el-menu-item-group>
        </el-sub-menu>
        <el-sub-menu index="/teaching">
          <template #title>
            <el-icon><icon-menu /></el-icon>
            <span>教学体化</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/teaching/general">通用管理</el-menu-item>
            <el-menu-item index="/teaching/process">流程管理</el-menu-item>
            <el-menu-item index="/teaching/information">数据管理</el-menu-item>
          </el-menu-item-group>
        </el-sub-menu>
        <el-menu-item index="/office">
          <el-icon><Chat /></el-icon>
          <span>办公系统</span>
        </el-menu-item>
        <el-menu-item index="/customerinfo">
          <el-icon><setting /></el-icon>
          <span>客户信息</span>
        </el-menu-item>
        <el-menu-item index="6">
          <el-icon><setting /></el-icon>
          <span>下载管理</span>
        </el-menu-item>
        <el-menu-item index="7">
          <el-icon><setting /></el-icon>
          <span>我的歌单</span>
        </el-menu-item>
        <el-menu-item index="/customer">
          <el-icon><Service /></el-icon>
          <span>客服服务系统</span>
        </el-menu-item>
        <el-sub-menu index="/user">
          <template #title>
            <el-icon><Grid /></el-icon>
            <span>个人设置</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/user/homepage">个人主页</el-menu-item>
            <el-menu-item index="/user/setting">账号设置</el-menu-item>
          </el-menu-item-group>
        </el-sub-menu>
      </el-menu>
    </el-col>
  </el-row>
</template>

<script setup>
import {
  Menu as IconMenu,
  ChatLineSquare as Chat,
  Service,
  Location,
  Setting,
  Grid
} from '@element-plus/icons-vue'
const handleOpen = (key, keyPath) => {
  // console.log(key, keyPath)
}
const handleClose = (key, keyPath) => {
  // console.log(key, keyPath)
}
</script>

<style></style>
